package dyyx.jackson;

import com.fasterxml.jackson.databind.ObjectMapper;

import dyyx.DataUtil;
import dyyx.JacksonUtil;
import dyyx.dto.Department;

public class Test1 {

	public static void main(String[] args) throws Exception {
		
		Department dept = DataUtil.getDepartment();
		System.out.println(dept);

		String json = JacksonUtil.toString(dept, true);
		System.out.println(json);		
		
		Department dept2 = JacksonUtil.toObject(json, Department.class);
		System.out.println(dept2);
		
		
		ObjectMapper mapper = JacksonUtil.getObjectMapper();

		
		
		
	}
}
